package com.socialuni.common.user.sdk.manage;

import com.socialuni.common.user.model.DO.CommonUserDO;
import com.socialuni.common.user.sdk.repository.CommonUserRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CommonUserDOGet {
    @Resource
    CommonUserRepository uniUserRepository;

    public CommonUserDO get(Integer userId) {
        return uniUserRepository.findById(userId).get();
    }
}